首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏CodingToDie

    Git | Git Server 搭建

    在本地测试一下能否操作 总结 参考 ---- 前言 平常都是在用 GitHub、GitLab、Gitee 等服务,那我们如何自己搭建一个 Git Server,这里我们搭建一个简单的 Git Server 创建 .ssh 目录 /home# su git /home# cd git /home/git# mkdir .ssh && chmod 700 .ssh /home/git# touch .ssh/ 在服务器上创建个裸仓库 /home/git# cd code_repository/ /home/git/code_repository# mkdir abc.git /home/git/code_repository # cd abc.git/ /home/git/code_repository/abc.git# git init --bare 注意: 这里需要使用 git 用户进行操作 5. reademe.md" $ git remote add origin ssh://git@xxx.xx.xx.xx:/home/git/code_repository/abc.git $ git push

    1.6K31发布于 2020-09-27
  • 来自专栏用户2442861的专栏

    HTTP server git

    void Server::incomingConnection(int socketDescriptor) { //有新的连接时,代替默认的功能(新建socket) Request * 安装hiredis git clone https://github.com/antirez/hiredis.git && cd hiredis make sudo make install sudo

    96720发布于 2018-09-20
  • 来自专栏技术点滴

    最简git Server配置

    最简git Server配置 如何保持多台计算机的项目代码的同步更新呢?通过在一个公用计算机上开启git服务,任何能与该计算机互联的终端都可以同步最新的项目代码。 服务端配置: 1.安装git:sudo apt-get install git-core 2.安装ssh服务:sudo apt-get install openssh-server 3.创建服务端仓库文件夹 (用户root可以访问):mkdir /project.git 4.新建空白仓库:git --bare init /project.git 客户端使用(针对已配置的git服务器的使用方法): 本地的git : 1.切换到工作目录:cd project 2.设置远程仓库路径(客户端已经存在仓库数据):git remote add origin root@172.20.134.174:/project.git :/project.git 2.输入远程计算机root用户密码 3.切换到工作目录:cd project 更多细节请参考: http://www.xue5.com/Server/Linux/667461

    889100发布于 2018-02-05
  • 来自专栏Rainbond开源「容器云平台」

    敲黑板 | 云帮如何对接Git Server

    私有云 GitLab是一个用于仓库管理系统的开源项目,私有云服务里使用比较多的自建Git服务。 no LogLevel ERROR Port 20002 #git ssh 对外开放的端口 #说明一下 如果存在多个Git服务,同时还使用ssh管理服务,建议在Host里指定git地址 # 测试 git clone 项目url ? no LogLevel ERROR Port 20002 #git ssh 对外开放的端口 git clone <git-url> 公有云 在公有云搭建Git服务和内网自建Git服务,对接步骤相同 公有云新建Git步骤同私有云。 云平台git clone代码,选择自建Git,然后将授权key添加Git应用的ssh-key列表里即可。 ?

    1.9K40发布于 2018-05-31
  • 来自专栏用户1998800的专栏

    Git HTTP Server的实现流程及php实现

    Git HTTP Server 第一版 早期的Git HTTP Server,由于对nginx的坚持,以及git-http-backend对fastcgi的不支持,我们在中间加了facgiwrap作为粘合剂 Git HTTP Server 第二版 不过,这套体系对于权限控制的这块太过粗细条了。 Git HTTP Server 第三版 但是,这样的结构就ok了吗?就靠谱了吗?随着又一次git项目的迁移,对此的疑问达到了一个顶峰。 因为这个git http server依赖的中间环节太多了,迁移和搭建的成本还是蛮大的,哪个环节配置出问题,都可能导致系统不能正常工作起来。 所以,我开始寻找新的突破口,在看了git-http-backend源码,结合gogit、以及《自己动手写 Git HTTP Server》等文章的消化,最终开始下手着手第3版Git HTTP Server

    35810编辑于 2023-07-24
  • 来自专栏开源部署

    CentOS 6.3下使用Gitosis安装搭建Git Server教程

    Gitosis Gitweb:                  1.7.1-3        OpenSSH Server:    openssh-server-5.3p1 apache:                  httpd-2.4.4 python-setuptools:  python-setuptools-0.6.10-3 Git server(centos6.3 x64): node2.example.com Git client(centos6.3 x64): node1.example.com server端配置: 一.关闭iptables和SELINUX 代码如下: # service iptables 传送门:http://www.bitsCN.com/article/54969.htm 四.安装OpenSSH 1.yum安装OpenSSH: 代码如下: # yum install openssh-server . drwxr-xr-x 4 git git 4096 Aug 12 13:23 .. drwxr-xr-x 8 git git 4096 Aug 12 13:22 .git -rwxr-xr-x 1

    68920编辑于 2022-07-03
  • 来自专栏10km的专栏

    git submodule update: error: Server does not allow request for unadvertised...

    https://blog.csdn.net/10km/article/details/80308199 周末在家里做了一些工作,周一到办公室,执行git更新办公室电脑上的代码时,报错了 git submodule update –init faceapi-rpc-cpp/dependencies/common_source_cpp/ error: Server does not 想到这里我明白原因了: 我在家里工作时主项目的代码push到了git server,但忘记将submodule common_source_cpp也push到git server. 解决办法很简单:回头到笔记本上把submodulecommon_source_cpppush一下 再执行 git submodule update就正常了。 参考资料 《What does the git error message “Server does not allow request for unadvertised object” mean?》

    3K50发布于 2019-05-26
  • 来自专栏专注于java领域技术分析

    清华大佬教你用一篇文章完全学会Git,GitHub,Git Server

    在日常工作中,经常会用到Git操作。但是对于新人来讲,刚上来对Git很陌生,操作起来也很懵逼。本篇文章主要针对刚开始接触Git的新人,理解Git的基本原理,掌握常用的一些命令。 可以使用git status查看暂存区的状态。暂存区标记了你当前工作区中,哪些内容是被git管理的。 add相关命令很简单,主要实现将工作区修改的内容提交到暂存区,交由git管理。 git add . git branch 列出所有本地分支 git branch -r 列出所有远程分支 git branch -a 列出所有本地分支和远程分支 git branch [branch-name] 新建一个分支 ] --all 推送所有分支到远程仓库 其他命令 git status 显示有变更的文件 git log 显示当前分支的版本历史 git diff 显示暂存区和工作区的差异 git diff HEAD

    58410发布于 2020-07-31
  • 来自专栏Web技术分享

    部署私有git时出现错误server certificate verification failed.

    今天在部署自己域名上的私有git时出现错误: server certificate verification failed. CAfile: none CRLfile: none 回想了一下,原来今天将git域名换了ZeroSSL,可能git不信任此证书,那么有两个解决方法: 1、跟换为git信任的证书 2、执行以下命令: git config --global http.sslverify false git config --global https.sslverify false

    3.2K40编辑于 2022-08-28
  • 来自专栏Eureka的技术时光轴

    git clone报错 server certificate verification failed. CAfile: none CRLfile: none

    原文链接:https://www.code404.icu/561.html 当使用命令 git pull 出现错误信息如下: server certificate verification failed CAfile: none CRLfile: none 解决方案: git config --global http.sslverify false git config --global https.sslverify false git clone报错:“server certificate verification failed. project using ssh, but it doesn’t work when I clone project with https. it shows message error as below. server certs/ca-certificates.crt CRLfile: none 解决方案: Open your terminal and run following command: export GIT_SSL_NO_VERIFY

    5.4K30编辑于 2022-05-11
  • 来自专栏git相关问题

    git使用之fatal: could not create work tree dir ‘qingtinghr-server’: Permission deni

    git使用之fatal: could not create work tree dir ‘qingtinghr-server’: Permission denied 解决方案-优雅草央千澈问题描述今天新弄了一台服务器 ,配置git账户对应的ssh密钥信息,但git clone 项目时候是提示报错此问题,fatal: could not create work tree dir 'qingtinghr-server': .因为我的目录在两层以上,因此我是cd 执行了两次,当然你们也可以只一次加个/这里我们必须用到一个命令 chmod o+w我们执行sudo chmod o+w /www/wwwroot然后我们再次执行git

    52810编辑于 2025-01-07
  • 来自专栏肖金阳的专栏

    【腾讯云的1001种玩法】Ubuntu Server搭建 Git 服务器实测版

    周末花费时间在云服务器Ubuntu Server 14.04.1系统上搭建了一个 git 服务器。搭建过程中还是遇到了一些小问题,在这里记录下来。 一、安装git服务器所需软件 在终端输入以下命令: ubuntu@VM-215-209-ubuntu: sudo apt-get install git-core openssh-server openssh-client 安装openssh-server和openssh-client是由于 git 需要通过 ssh协议在服务器与客户端之间传输文件。 中间有个确认操作。如果安装提示失败,可能因为系统软件库索引文件太旧。 二、创建git管理员账户、配置git 创建一个账户(git)作为git服务器的管理员,可以管理其他用户权限。 相关推荐 【腾讯云的1001种玩法】微信个人订阅号后台server搭建入门教程 【腾讯云的1001种玩法】Ubuntu 14.04 Spark单机环境搭建与初步学习

    3K20发布于 2017-04-14
  • 来自专栏小工匠聊架构

    Git - Git Merge VS Git Rebase

    ---- 概述 Git merge和Git rebase是两种不同的版本控制工作流程,它们用于将一个分支的更改合并到另一个分支。 历史记录的清晰度: Git Merge:合并提交保留了分支的完整历史记录,但可能会在分支历史中引入多余的合并提交,使得历史记录变得复杂。 合并冲突的处理: Git Merge:如果合并过程中出现冲突,Git会创建合并冲突并等待用户手动解决。解决后,用户提交合并冲突的更改并继续合并。 Git Rebase:如果在重写历史时出现冲突,Git会在每个冲突点暂停,等待用户解决冲突。然后用户提交冲突的解决方案,并继续重写历史。这可能需要更多的交互。 ---- Flow View 小结 总之,Git Merge和Git Rebase都有其用途,取决于项目的需求和团队的工作流程。

    1.3K30编辑于 2023-09-14
  • 来自专栏C语言

    GitGit初识

    Git 安装 Git 是开放源代码的代码托管工具,最早是在Linux下开发的。 Linux-centos 如果你的的平台是centos,安装git相当简单,以我的centos7.6为例: 首先,你可以试着输入Git,看看系统有没有安装Git: $ git -bash: git: 安装 Git: sudo yum -y install git 查看 Git 安装的版本: git --version Linux-ubuntu 如果你的的平台是ubuntu,安装git相当简单,以我的 ubuntu20.04为例: 首先,你可以试着输入git,看看系统有没有安装Git: $ git Command 'git' not found, but can be installed with: sudo apt install git 出现像上面的结果,Linux会友好地告诉你Git没有安装,还会告诉你如何安装Git

    29710编辑于 2025-08-26
  • 来自专栏johnhuster

    try to re connect to a new server ,server is not appointed,will choose a random server

    [t.remote.worker] com.alibaba.nacos.common.remote.client   : [7b83a82c-d533-4968-9f39-a1d8719f712a]Server ,server is  not appointed,will choose a random server. 2022-07-23 10:46:39.999  INFO 7 --- [t.remote.worker ,server is  not appointed,will choose a random server. 2022-07-23 10:46:46.119  INFO 7 --- [t.remote.worker ,after trying 1 times, last try server is {serverIp='nacos-server.xxx', server main port=8848},error= ,after trying 1 times, last try server is {serverIp='nacos-server.xxx', server main port=8848},error=

    5.5K20编辑于 2022-09-16
  • 来自专栏乐沙弥的世界

    Possible MySQL server UUID duplication for server

        在mysql enterprise monitor监控过程中出现这样的event事件,Topic: Possible MySQL server UUID duplication for server 1、故障现象 Topic: Possible MySQL server UUID duplication for server afd6bca4-6636-11e3-9d60-74867ae1c47c: Monitoring and Support Services Current State:Open Auto-Closes by Default:Yes Advisor:Duplicate MySQL Server This can be caused by server or host cloning. the MySQL server to the rest of MEM.

    2.3K20发布于 2018-08-13
  • 来自专栏小鹏的专栏

    server

    TextMatch/server模块包含 :(基于MLFlow的server) model_server.py import os import sys import time import platform ] python version: %s' % platform.python_version()) print('[model_server] code_home: %s' % code_home) text"].values) return self.mf.predict(model_input["text"].values[0]) # 模型预测主流程 def model_server args.experiment_name # 实验名称 input_version_name = args.version_name # 输入的版本名称 model_server 模型 python model_server.py --experiment_name "textmatch" --version_name "001" --model_file "textmodel

    76120发布于 2020-10-29
  • 来自专栏科技日常

    Git秘籍: Git and Git Flow Cheat Sheet

    "[valid-email]" 设置 git 命令行输出为彩色: $ git config --global color.ui auto 设置 git 使用的文本编辑器: $ git config - git init 在指定目录创建一个新的本地仓库: $ git init ---- 本地修改 显示工作路径下已修改的文件: $ git status 显示提交文件的变化: $ git diff 显示指定文件的变化 date: $ git commit --amend --date="date" 把当前分支中未提交的修改移动到其他分支: $ git stash $ git checkout branch2 $ git $ git branch -D 给当前分支打标签: $ git tag 给当前分支打标签并打开编辑器附加消息: $ git tag -a 给当前分支打标签并附加消息: $ git tag -am : $ git push : (since Git v1.5.0) 或 $ git push --delete (since Git v1.7.0) 发布标签: $ git push --tags

    2.2K20编辑于 2023-02-27
  • Spring Cloud统一配置中心深度解析(一):基于Git的Config Server搭建与实战

    Spring Cloud Config Server核心原理解析 基于Git的配置存储机制 Spring Cloud Config Server的核心设计理念是将配置信息集中存储在版本控制系统(如Git Config Server通过配置spring.cloud.config.server.git.uri指定仓库地址,并支持认证配置以访问私有仓库。 实战搭建:基于Git的Config Server环境部署 环境准备:JDK与Git的安装与配置 在开始搭建Config Server之前,我们需要确保本地开发环境已准备就绪。 Git的安装与仓库准备 Config Server的核心是基于Git仓库管理配置文件,因此需要安装Git并准备一个远程仓库(如GitHub、Gitee或私有GitLab)。 缓存优化: 启用本地缓存:Config Server默认缓存Git仓库内容到本地文件系统(通过spring.cloud.config.server.git.basedir设置路径)。

    48010编辑于 2025-11-29
  • 来自专栏LawD的技术专栏

    Git IDEA集成Git

    配置Git忽略文件 配置原因 忽略掉与项目实际功能无关,不参与服务器部署运行的文件,能屏蔽IDE工具之间的差异 0-配置忽略文件.jpg 配置方法 创建忽略规则文件 .ignore文件 推荐命名git.ignore 存放位置 可以存放在任何位置 为了便于~/.gitconfig文件引用,推荐放在家目录下 1-存放位置.jpg git.inore文件 # Compiled class file *.class # 4-设置.jpg 配置Git安装目录 5-安装目录.jpg 点击Test后,显示版本信息 6-版本信息.jpg 初始化本地库 创建Git本地库,菜单栏VCS->Create Git Repository 7-创建Git本地库.jpg 8-创建.jpg 当文件目录中出现git文件就说明创建成功了 9-创建成功.jpg 同时pom.xml文件名会变成红色,说明git已经检测到了该项目,且pom.xml文件未被添加到暂存区中 10-创建成功.jpg 添加文件到暂存区 创建一个测试文件 12-新建测试文件.jpg 方法一 右击pom.xml文件,选择Git->Add 11-添加暂存区.jpg 方法二 右击项目目录,选择Git

    1.6K20发布于 2021-08-23
领券